module.exports = {
  entry: './src/main',
  output: {
    path: __dirname + './dist',
    publicPath: '/',
    filename: 'main.js',
  },
  devServer: {
    port: 9997,
    stats: {
      colors: true,
      chunks: false,
    }
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        exclude: /node_modules/,
        query: { presets: ['es2015', 'react'] },
      },
      {
        test: /\.js$/,
        loader: 'buble-loader',
      },
      {
        test: /\.(jpg|jpeg|png)$/,
        loader: 'url-loader',
        options: {
          limit: 1000,
          name: '[name].[hash:6].[ext]',
        }
      }
    ]
  },
  resolve: {
    extensions: ['.js'],
  },
}